x = 0:0.001:2;

y = forwardSpeed(x, .3);

h = plot(x,y);
set(h(1), "linewidth", 2); 
grid;

ylabel("Velocidade frontal (m/s)");
xlabel("Distancia ate o obstaculo mais proximo (m)");

printf('max vf: %f cm/s\n', max(y) * 100)
printf('min vf: %f cm/s\n', min(y) * 100)
